﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Configuration;
using CallCenter.Data;
using CallCenter.Security;

namespace CallCenter.Web.Controllers
{
    
    public class BaseController : Controller
    {
        public BaseController()
        {
            var connectionString = ConfigurationManager.ConnectionStrings["mainConnection"].ConnectionString;

            this.Bridge = new DataManager(connectionString);
        }

        protected override void OnActionExecuted(ActionExecutedContext filterContext)
        {
            
            base.OnActionExecuted(filterContext);
        }
        public DataManager Bridge { get; private set; }
    }
}